/*
 * 作者：姚俊
 * 功能：给老师的session，以便于跳转到老师的action
 * 日期：2015-06-24
 */
package admin.action.baseInfo;

import com.opensymphony.xwork2.ActionContext;

import teacher.bean.Teacher;
import teacher.service.teacher;


public class TansferTeacherAction {
	
	private Teacher teacher;

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	
	
	public String execute()
	{
		this.setTeacher(new teacher().SelectTeacher(teacher));
		ActionContext.getContext().getSession().put("teacher",this.getTeacher());
		return "succ";
	}

}
